﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CompilerLib.Scanner
{
    public sealed class ConcatenationExpression : RegularExpression
    {
        public RegularExpression Left { get; set; }
        public RegularExpression Right { get; set; }
        public ConcatenationExpression(RegularExpression left, RegularExpression right)
        {
            Left = left;
            Right = right;
        }
        public override string ToString()
        {
            return Left.ToString() + Right.ToString();
        }

        internal override T Accept<T>(RegularExpressionConverter<T> converter)
        {
            return converter.ConvertConcatenation(this);
        }
    }
}
